package edu.sctu.xialei.june.day20150609one;


import java.util.Calendar;
import java.util.Date;

/**
 * Created by Administrator on 6/9/2015.
 */
class Timer {

    Calendar calendar;

    public Date beforTime(){

        calendar = Calendar.getInstance();

        return calendar.getTime();
    }

    public Date countTime(long seconds){

        Calendar calendar = Calendar.getInstance();

        Date date = calendar.getTime();

        date.setTime(calendar.getTime().getTime() + seconds);

        return date;
    }
}
